﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using TMS_Master.TmsEnum;
using Volo.Abp.Domain.Entities.Auditing;

namespace TMS_Master.Entities
{
    /// <summary>
    /// 物资采购表
    /// </summary>
    [Table("Cargo_Information")]
    public class Cargo_Information: AuditedAggregateRoot<Guid>
    {

        /// <summary>
        /// 货物名称
        /// </summary>
        [StringLength(20)]
        [Required]
        public string CargoName  { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [Required]
        public Guid TypeID     { get; set; }

        /// <summary>
        /// 材质
        /// </summary>
        [Required]
        public Guid TextureID  { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        [StringLength(20)]
        [Required]
        public string SkuName    { get; set; }

        /// <summary>
        /// 产地
        /// </summary>
        [Required]
        public Guid AddrID     { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [Required]
        public int Number     { get; set; }

        /// <summary>
        /// 用途描述
        /// </summary>
        [StringLength(200)]
        public string UseInfo    { get; set; }

        /// <summary>
        /// 申请人
        /// </summary>
        [StringLength(20)]
        public string Proposer   { get; set; }

        /// <summary>
        /// 期望交付日期
        /// </summary>
        public DateTime ExpectTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(200)]
        public string Remark     { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public Status IsState    { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>
        [StringLength(20)]
        public string Approver   { get; set; }

        /// <summary>
        /// 删除状态
        /// </summary>
        public int IsDeleted { get; set; }
    }
}

